from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r'^login/', 'inv.admin.views.login_view'),
    (r'^logout/', 'inv.admin.views.logout_view'),
    (r'^main/', 'inv.admin.views.main'),
    (r'^user_group/list/', 'inv.admin.views.user_group'),
    (r'^user_group/add/', 'inv.admin.views.user_group_add'),

# Urls to update the Class, Group and meta Info
    (r'^add_class/$', 'inv.admin.views.add_class'),
    (r'^add_group/$', 'inv.admin.views.add_group'),
    (r'^add_meta/$', 'inv.admin.views.add_meta'),
# Urls to get list of Class, Group and meta Info
# (.*) is for ENABLED, DISABLED, BOTH
    (r'^class_list/(.*)/$', 'inv.admin.views.class_list'),
#(\d+) represents the cls_id
    (r'^group_list/(\d+)/(.*)/$', 'inv.admin.views.group_list'),
#(\d+)/(\d+) represents the cls_id/grp_id
#if grp_id is 0, then returns all metas under the class
    (r'^meta_list/(\d+)/(\d+)/(.*)/$', 'inv.admin.views.meta_list'),
)

